<template>
  <div class="l_welcome">
    <el-card class="l_welcome-card">
      <p>南宁不一科技有限公司</p>
      <span>您好，欢迎使用<a href="javascript:void(0)" title="" @click="enterFn">南宁不一科技有限公司管理系统</a></span>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "welcome",
  data() {
    return {};
  },
  methods: {
    enterFn() {
      var myToken = window.localStorage.getItem("token");
      if (!myToken) {
        this.$message({
            message: '请先登录！',
            center: true,
            type: 'success'
        });
        this.$router.push('/');
      }else{
        this.$router.push('/2');
      }
    }
  },
};
</script>

<style scoped>
.l_welcome-card{margin-bottom: 20px;}
.l_welcome-card p{font-size: 40px;margin-bottom: 20px;}
.l_welcome-card span{font-size: 18px;margin-bottom: 20px;display: block;}
.l_welcome-card span a{color: #1890ff;}

</style>
